home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr13
/
alist112.zip
/
COLRTEXT.COL
< prev
Wrap
Text File
|
1995-02-03
|
11KB
|
230 lines
┌─┐
î ┌──────┐ ┌──────┤ │ ┌─────┐ è┌────────┐┌───────┐┌────┐ ┌────┐┌────────┐
ä ┌┘ ┌────┘ │ ┌──┐ │ │ │┌──┐ └┐ è│┌─┐ ┌─┐│└┐ ┌───┐│└─┐ ┌┘ └┐ ┌─┘│┌─┐ ┌─┐│
ì ┌┘ ┌┘ ┌┘┌┘ ┌┘ │ │ ││ └─┐└┐è└┘ │ │ └┘ │ │ ┌┐└┘ └┐└┐ ┌┘┌┘ └┘ │ │ └┘
à│ │ │ │ │ │ │ ││ ┌┘ │ è │ │ │ └─┘│ └┐└─┘┌┘ │ │ ï┌┐
å│ │ │ │ │ ┌┘ │ │└───┘ ┌┘ è │ │ │ ┌─┐│ │ │ │ │ ï└┘
ê │ │ │ │ │ │ │ │ ┌┘ è │ │ │ │ └┘┌┐ ┌┘┌─┐└┐ │ │ ï┌┐
Ä │ │ │ │ │ │ └───┴┐┌┐ └┐ è │ │ │ │ ││ ┌┘┌┘ └┐└┐ │ │ ï││
Å│ └─────┐│ └──┘ ├┐ ││└┐ └┐ è ┌┘ └┐ ┌┘ └───┘│┌─┘ └┐ ┌┘ └─┐ ┌┘ └┐ï└┘
ï └────────┘└──────┘└──────┴┘ └───┘ è └────┘ └───────┘└────┘ └────┘ └────┘
Paint your texts
Å COLRTEXT v 0.98 27.2.95
Å═════════════════════════════ by ïWalter Gamba
ïCOLRTEXT is a small, but fast, text viewer and "painter". It has, as one can
guess from the name, ANSI capabilities, i.e. it can display text with embedded
ANSI escape sequences or a very simple color codes. It does not need ANSI.SYS,
of course.
Using the Mouse, one can apply colour over a text file, save it and view it
using both ïCOLRTEXT or its smaller companion ïANSILIST (version 1.12 up).
ïCOLRTEXT is shareware, but cheap. Pleas read the Shareware notice.
─────────
ÅNOTE & DISCLAIMER
Å─────────────────
ÅPlease note that if you choose to paint the text file, and you decide to save
your work, the original text file will be overwritten with the text+embedded
colour sequences.
I do not guarantee that te saved file will not be corrupted, or made unreadable.
So I suggest you to work always on a back-up ed copy of a file.
Å file list
Å───────────────
ÅYour ZIP file must contain the following:
ÅCOLRTEXT.EXE the exe file
ÅCOLRTEXT.DOC this doc
ÅHUNGBOOK.TXT the test file
If you know ïANSILIST you will find ïCOLRTEXT very similar.
If you are interested in ïANSILIST (same as ïCOLRTEXT but with no painting
facilities) search for ALISTXXX.ZIP.
Å HOW TO RUN IT
Å───────────────
ÅIf you want to use the colouring facilities of ïCOLRTEXT you must load, before
running it, a Microsoft Mouse compatible driver.
To run ïCOLRTEXT simply type on the command line:
>>ïCOLRTEXT filelame [/t] [/c]
"filename" is the name of the file you want to view or colour. It can list files
with up to 650,000 lines..
î/t will force COLRTEXT to start in plain text mode (by default it
starts in ANSI mode).
î/c will force it to start in ClearScreen mode (by default
the ClearScreen mode is turned off).
îANSI mode: the ability to read end interprete ansi escape sequences and
my simple color coding scheme. When it is turned off escapes are
treated as normal text and it is not possible to colour text.
îClearScreen mode: in this mode, before every screen update, the program will
wipe off the screen. If this is turned off it won't.
Read the ANSI section for details.
Typing ïCOLRTEXT alone will bring up a concise help.
ÅANSITEXT Screen:
Å────────────────
ÅYou will be presented with the first page of the document.
At the bottom of the screen a Status Bar will contain (from right to left):
-the name of the file you're viewing
-the Ansi status (read the Ansi section)
-the Clearscreen status (read the Ansi section)
-the number of the line displayed in the upper row of the screen
-the percentage of the text yo've already viewed (including the current
page)
-the îcurrent painting colour, in the form èCol .
-theî color palette, allowing you to choose between the standard 16
colours.
ÅCommands:
Å─────────
ÅWhile viewing a text you can use the following keys:
îSPACE/ENTER/PGDWN view next page
îPGUP view previous page
îHOME moves to the beginning of the file
îEND moves to the last page of the file
îDWN view one line down
îUP view one liine up
îLEFT view current page, one char to the left
îRIGHT view current page, one char on th right
îA toggle ANSI interpreter on/off
îC toggle ClearScreen status
Only Registered version:
îF find a string in the file, from current position.
matches ignoring case.
îN find next occurrence of the string
îL load another file
In both versions:
îESC quit COLRTEXT
When prompted with error messages hit a key to resume.
ÅHow to paint text files
Å───────────────────────
ÅIf you have a mouse driver loaded, and you have turned ANSI capabilities on,
you can îpaint text using the standard EGA colours.
Normal text is coloured in Light Gray, and the background is always black.
îJust choose the colour you want by clicking the left mouse button on the
appropriate `'. You will see the colour you have selected appear between
the two arrows `' and `'.
Then point at the first character of the text you want to paint, îpress and
îkeep pressed the left mouse button and move the mouse pointer until you have
îselected the text (it will appear in a different colour). When you have
selected exactly the piece of text you want to paint, release the mouse button.
The text will then appear in the colour you have chosen.
ÅCOLRTEXT & ANSI files.
Å──────────────────────
ÅThe texts this program was at first intended to work with were text files
with ANSI esacape sequeneces which specified colour. This kind of text is
very much similar to plain text, i.e. one line in the file corresponds to
exactly one line on the screen. When I decided to implement all the other
escape sequences, in order to be able to view ANSI drawings, I had some
problems, mainly because an ansi file has not a one-to-one mapping between
file lines and screen lines.
When viewing large ansi file I suggest to use only the PGUP/PGDWN keys,
since in an ansi file with embedded screen coordinates it is rarely effective
to read the next file line hoping to see the drawing scrolling one line.
This is because usually in ansi files it takes several lines in the file to
specify one line on the screen.
Moreover, since ansi drawing is not sequencial, but can move the cursor
everywhere, sometimes portions of the screen are left untouched (and
supposed black). Since we are using a text viewer, the screen is always
covered with characters and rarely empty. That's why I included the option
of clearing the screen before any screen update( i.e. before any movement
command). One can toggle this function on and off with the C key.
This function is useless when viewing files in plain text mode.
ÅWhy an ANSI file viewer?
Å────────────────────────
ÅI was bored to use "type moo.ans" to view files with ansi escapes. When I
discovered GnuAWK and used it to colour up some text, I needed one to check
my work easily, scrolling up and down etc..
I include a ìMonty Python's sketch -èThe Hungarian Phrasebookç-, coloured so as
çto be more readable,as a test of the ANSI capabilities of this tiny software.
Should you be interested, I have some little ïGAWK script able to turn a
screenplay in a coloured screenplayin many ways. Just E-Mail me.
I include this .DOC file painte with ïCOLRTEXT as an example of what can be done.
ÅWhy my simple colour coding scheme
Å──────────────────────────────────
ÅI included in ïCOLRTEXT, and in the new version of ïANSILIST ( >1.12),the ability
to interprete a simpeler color coding scheme, consisting of two bytes,
one for the escape, the other for the color attribute. It was much more
simple and faster to handle files this way.
The escape sequence is made of two bytes: é0x01 éATTR
where éATTR is a screen color attribute (as used in the Video Ram )
ored with ë0x80.
if éATTR is ë0xFF this escape sequence will restore the colour used
before the previous `normal' escape sequence.
ÅNote about painting texts
Å─────────────────────────
ÅThe algorithm I have used to allow painting of text keeps every new "painting"
in memory, in order to work quickly. I hope to have attained this effect. Since
I have not fully optimized it, I have chosen to save the file every 100 paint
strokes added, then to reload it and continue working until yhe next 100 strokes
and so on. That's why sometimes you will be asked to save and reload the file.
Just to free up some memory and thus to work faster.
Actually I don't know yet how far this limit can be raised, I think 500 strokes
could work well, but I need time to test it.
Å BUGS REPORT
Å ──────────────────────────────
Since this is my first release, it is possible that my program has some bugs.
Even if you are not registered, it would be very useful to report any bug
to me (possibly via E-Mail). Thanx.
Å SHAREWARE NOTICE
Å ──────────────────────────────
ÅîThis program is not free, since it costed me many hours of tough coding and
testing.
îIf you find it useful and if you keep on using it after a trial period of 23
îdays tou should register.
To register just send meî 5$ (French Francs and Italian Lire of the roughly
same value are OK), specifying your E-Mail address.
I will then mail you the latest uuencoded release. If you don't have an E-Mail
you can include a SASE. Remember to specify if your computer can read 720K disks
(which are cheaper :) ). I will then ship you the disk with the registered
version.
îIt is a small fee, but it will help me improve COLRTEXT and my many other.
projects. Remember to specify if your computer can read 720K disks (which
are cheaper :) ). I will ship you the disk with the registered version which
include some facilities not implemented in the shareware version.
Å REDISTRIBUTION
Å ─────────────────────────
ÅYou may freely redistribute this software as long as you don't alter it and you
keep the ZIP package unaltered. All disclaimers and legal stuff as usual...
My address is:
è Walter Gamba
è via Torricelli 36
è 10129 Torino
è ITALY
è
éE-Mail: îIPER1@îpol90a.îpolito.îit
Ä ╒═╕╒═╕╒═══╕╒═╤═╕ ╒════╤═══╕╒═╕╒═══╕ ╒═╕
ÄÅ │ ╘╛ ╞╛╒═╕╘╡ │ │ │ ╒══╡ ╒╕╘╡ ││ ═╤╛ │ │
ÅÅ │ │ ╘═╛ │ │ ╘═╕ │ ╘═╕│ ╘╛╒╡ │╘═╕╘╕ │ │
Å │ ╒╕ │ ╒═╕ │ │ │ │ ═╧╡ ╒╕╘╡ ╞══╛╒╛ ╞═╡
╘═╛╘═╧═╛ ╘═╧═╧═══╛ ╘════╧═╛│ ╞═╧═══╛ ╘═╛
╘═╛